using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebSMS;

public interface ITPots
{
    public Task<PostPo> GetPostByUserId(Guid userId);
    public PagedList<PostPo> GetPostAll(int page,int size);
    public Task<bool> UpdatePost(PostPo post);
    public Task<bool> AddPost(PostPo post);
    public Task<bool> DeletePost(Guid postId);
    public PagedList<PostPo> GetAllPostByDepartmentId(Guid departmentId);

    public int GetPostCount();
}